package com.kfgj.hkp.common.enums;

import com.kfgj.hkp.common.dic.Dictionary;
import com.kfgj.hkp.common.dic.DictionaryProvider;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @version 1.0
 * @description TODO
 * @auth liwensihan
 * @date 2018/10/26 09:47
 */
@Component("commonSexType")
public class SexType implements DictionaryProvider {

    public final static String SexType = "SexType";
    public final static String Sir = "Sir";
    public final static String Lady = "Lady";

    @Override
    public List<Dictionary> produce() {
        List<Dictionary> list = new ArrayList<Dictionary>();
        list.add(new Dictionary(getKey(), SexType, "性别"));
        list.add(new Dictionary(getKey(), Sir, "先生", SexType));
        list.add(new Dictionary(getKey(), Lady, "女士", SexType));
        return list;
    }

    public static String getKey() {
        return SexType.class.getName();
    }
}
